//
//  ModuleMixer.m
//  CocoaSynth
//
//  Created by Pierre DUCHENE on 04/03/10.
//  Copyright 2010 Pierre DUCHENE. All rights reserved.
//

#import "ModuleMixer.h"

@implementation ModuleMixer

@synthesize portIn2, inputSample2;

#pragma mark -
#pragma mark Memory Management

- (id)init
{
	if (self = [super init]) {
		inputSample2 = nil;
		portIn2 = nil;
	}
	return self;
}

- (void)dealloc 
{
	[inputSample2 release];
	inputSample2 = nil;
	
	[portIn2 release];
	portIn2 = nil;
	
	[super dealloc];
}

- (void)read
{
	[super read];
	[inputSample2 release];
	inputSample2 = [[portIn2 getSample] retain];
}

@end
